package com.ny.wlw;

public class Test {
    public static void main(String[] args) {

    Pet dog = new Dog("小黄", 3);

    Pet cat = new Cat("Mimi", 2);

    System.out.println("Name: " + dog.getName() + ", Age: " + dog.getAge() + ", Sound: " + dog.makeSound());

    System.out.println("Name: " + cat.getName() + ", Age: " + cat.getAge() + ", Sound: " + cat.makeSound());
}
}
